MailPoet\Newsletter\NewslettersRepository S

Total Complexity 40
Dependencies 16
Dependents 45
Total lines 534
Lines of code 417
Logical lines of code 93
Comment lines 58
Methods 24
Properties 1

Methods 24

Method Rating Maintainability Complexity Lines of code
getArchives()
A
43 7 49
getAnalytics()
S
43 3 49
getStandardNewsletterListWithMultipleStatuses()
S
53 3 23
getNotificationHistoryItems()
S
56 3 18
bulkRestore()
S
50 2 32
bulkTrash()
S
50 2 31
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedOrInvalidTask()
S
56 1 19
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findDraftByTypes()
S
61 1 14
getStandardNewsletterList()
S
61 1 14
findActiveByTypes()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
deleteByIds()
S
64 1 11
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
setAsCorrupt()
S
74 1 5
getCorruptNewsletters()
S
78 1 3
__construct()
S
76 1 4
getEntityClassName()
S
82 1 3
getCountOfEmailsWithWPPost()
S
68 1 8
fetchChildrenIds()
S
65 1 10